Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.DockMode=function(){throw Error.notImplemented();
};
Telerik.Web.UI.DockMode.prototype={Floating:1,Docked:2,Default:3};
Telerik.Web.UI.DockMode.registerEnum("Telerik.Web.UI.DockMode");
Telerik.Web.UI.RadDock=function(a){Telerik.Web.UI.RadDock.initializeBase(this,[a]);
this._initialized=false;
this._enableDrag=true;
this._top=0;
this._left=0;
this._autoPostBack=false;
this._dockZoneID=null;
this._title=null;
this._commands=null;
this._closed=false;
this._collapsed=false;
this._pinned=false;
this._index=0;
this._forbiddenZones=[];
this._layoutID=null;
this._handle=null;
this._dockMode=Telerik.Web.UI.DockMode.Default;
this._resizable=false;
this._width="300px";
this._height=null;
this._expandedHeight=0;
this._uniqueID=null;
this._uniqueName=null;
this._handle=null;
this._form=null;
this._skin="Default";
this._enableAnimation=false;
this._animationDuration=300;
this._draggedCssClass="rdDragHelper";
this._tableElement=null;
this._grip=null;
this._titleBar=null;
this._commandsContainer=null;
this._topLeftBar=null;
this._topRightBar=null;
this._middleLeftBar=null;
this._middleRightBar=null;
this._contentContainer=null;
this._bottomLeftBar=null;
this._bottomMiddleBar=null;
this._bottomRightBar=null;
this.set_handle=this.set_handle;
this._isCustomHandle=false;
};
Telerik.Web.UI.RadDock.DragDataType="RadDock";
Telerik.Web.UI.RadDock.prototype={_fixIeHeight:function(a,b){if("CSS1Compat"==document.compatMode){var d=(a.offsetHeight-parseInt(b));
if(d>0){var c=(parseInt(a.style.height)-d);
if(c>0){a.style.height=c+"px";
}}}},_isDockRightToLeft:function(){var b=this._isRightToLeft;
if(b==null){var a=this.get_element();
if(a){b=this._isRightToLeft=$telerik.isRightToLeft(a);
}}return b;
},_setResizeLimit:function(){var g=this.get_element();
var e=0;
var b=this._getBounds(this._topBar).height;
var f=this._getBounds(this._bottomBar).height;
e=e+b+f;
this._minHeight=e;
g.style.minHeight=this._minHeight+"px";
this._handlesHeight=b+f;
var c=0;
var d=this._getBounds(this._middleLeftBar).width;
var h=this._getBounds(this._middleRightBar).width;
var a=this.get_commandsContainer()?$telerik.getOuterBounds(this.get_commandsContainer()).width:0;
this._minWidth=c+d+h+a;
g.style.minWidth=this._minWidth+"px";
this._handlesWidth=d+h;
},_updateSizeValues:function(){var a=this._getBounds();
this._width=a.width;
this._height=a.height;
},_setWidthHtmlEl:function(a,b){if(!a){return;
}if(!b){b=this.get_element();
}if(a.toString().indexOf("%")>-1){b.style.width=parseInt(a)+"%";
}else{b.style.width=parseInt(a)+"px";
}},_setHeightHtmlEl:function(a,b){if(!b){b=this.get_element();
}if(!a){b.style.height="";
return;
}if(a.toString().indexOf("%")>-1){b.style.height=parseInt(a)+"%";
}else{b.style.height=parseInt(a)+"px";
}},_moveElements:function(c,a){while(c.childNodes&&c.childNodes.length>0){var b=c.childNodes[0];
c.removeChild(b);
a.appendChild(b);
}},_configureHandles:function(b){if(!this._resizeExtender){return;
}var a=["e","s","w","sw","se","nw","ne"];
var c=this._resizeExtender._resizeHandles;
for(var e=0;
e<a.length;
e++){var f=a[e];
var d=c[f];
if(d){d.style.cursor=b?f+"-resize":"";
}}},_fixEmWidth:function(){var b=this.get_titleBar();
if(b==null){return;
}var d=$telerik.getBounds(b).width;
if(d>0){var a=this.get_titleElement();
if(a){if($telerik.isIE6){a.style.display="none";
d=$telerik.getBounds(b).width;
a.style.display="block";
}var g=this.get_commandsContainer();
var f=g?$telerik.getOuterBounds(g).width:0;
var c=d-f-30;
var e=c>0?c:0;
a.style.width=e+"px";
}}},_enableMoveResize:function(){if(this._resizeExtender){this._resizeExtender.dispose();
}var a={};
if(this._resizable){if(this._isDockRightToLeft()){a={s:this._middleRightBar,w:this._middleLeftBar,e:this._bottomMiddleBar,sw:this._bottomRightBar,se:this._bottomLeftBar,nw:this._topRightBar,ne:this._topLeftBar};
}else{a={e:this._middleRightBar,w:this._middleLeftBar,s:this._bottomMiddleBar,se:this._bottomRightBar,sw:this._bottomLeftBar,ne:this._topRightBar,nw:this._topLeftBar};
}}if(this._handle&&this.get_enableDrag()&&!this.get_pinned()){a.move=this._handle;
}this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this.get_element(),a,this._tableElement);
if(this._resizable){if(this._collapsed||this._dockZoneID){this._configureHandles(false);
}}},_makeResizable:function(){this._enableMoveResize();
},onResizeStart:function(){if(this._collapsed||this._dockZoneID){return;
}var a=this.get_titleElement();
if(a){a.style.display="none";
}this._setResizeLimit();
this.raise_resizeStart(new Sys.EventArgs());
},onResizing:function(c){if(this._collapsed||this._dockZoneID){return false;
}var d=this.get_contentContainer();
if(d){var a=c.height;
a-=this._handlesHeight;
var b=c.width;
b-=this._handlesWidth;
if(a<=0||b<=this._minWidth){return false;
}else{d.style.height=a+"px";
if($telerik.isIE6){d.style.width=b+"px";
}}}},onResizeEnd:function(){if(this._collapsed||this._dockZoneID){return;
}var a=this._getBounds();
var b=a.width;
var c=a.height;
if(b<this._minWidth){b=this._minWidth;
}if(c<this._minHeight){c=this._minHeight;
}this._setSize(b,c);
this._fixEmWidth();
var e=this.get_titleElement();
if(e){e.style.display="block";
}var d=this.get_element();
d.style.minWidth="";
d.style.minHeight="";
this._updateSizeValues();
this.updateClientState();
this.raise_resizeEnd(new Sys.EventArgs());
},_initializeDrag:function(){if(this._handle){this._disposeDrag();
if(this.get_enableDrag()&&!this.get_pinned()){Sys.UI.DomElement.addCssClass(this._handle,"rdDraggable");
this._enableMoveResize();
}else{if(this._resizable){this._enableMoveResize();
}}}},_disposeDrag:function(){if(this._handle&&this._resizeExtender){this._resizeExtender.dispose();
this._resizeExtender=null;
Sys.UI.DomElement.removeCssClass(this._handle,"rdDraggable");
}},_startDragDrop:function(){var d=this.get_element();
this.originalZIndex=d.style.zIndex;
var a=this._getBounds(d);
var c=this._getBorderBox(d);
a.width-=c.horizontal;
a.height-=c.vertical;
d.style.width=a.width+"px";
d.style.zIndex="9999999";
var b=$telerik.getLocation(d);
if(d.parentNode!=this._form){this._form.appendChild(d);
}var e=$find(this.get_dockZoneID());
if(e){e._showPlaceholder(this,b);
}this._setLocation(b);
},onDragStart:function(a){if(!this.get_enableDrag()||this.get_pinned()){return false;
}var b=new Sys.CancelEventArgs();
b.ownerEvent=a.ownerEvent;
this.raiseEvent("dragStart",b);
if(b.get_cancel()){return false;
}this.get_contentContainer().style.overflow="hidden";
this.addCssClass(this._draggedCssClass);
this._startDragDrop();
var c=this.get_element();
return true;
},onDrag:function(a){this._hitZone=this.dockingZoneHitTest(a.ownerEvent);
this.raise_drag(new Sys.EventArgs());
},onDragEnd:function(b){var c=this._hitZone;
if(!c){var a=this._getBounds();
c=this._hitZone=this.dockingZoneHitTest(b.ownerEvent);
}if(c){if(c.canDrop(this)){c.drop(this);
}else{this._restorePosition();
}}else{if(this.canDrop()){this.drop();
}else{this._restorePosition();
}}this.get_contentContainer().style.overflow="auto";
this.removeCssClass(this._draggedCssClass);
this.raise_dragEnd(new Sys.EventArgs());
},get_dockZones:function(){if(typeof(Telerik.Web.UI.RadDockZonesGlobalArray)=="undefined"){return[];
}return Telerik.Web.UI.RadDockZonesGlobalArray;
},dockingZoneHitTest:function(f){var c=null;
var b=this.get_dockZones();
var h=this.get_element();
var d=[];
var k=[];
for(var a=0;
a<b.length;
a++){if(b[a].hitTest(this,f,false)){d[d.length]=b[a].get_element();
k[k.length]=b[a];
}}if(d.length>0){if(d.length==1){c=$find(d[0].id);
}else{if(d.length>1){h.style.display="none";
var g=document.elementFromPoint(f.clientX,f.clientY);
h.style.display="";
if(g){var j=document.body;
while(g!=j){for(var a=0;
a<d.length;
a++){if(g==d[a]){if(g.id){c=$find(g.id);
}break;
}}if(c!=null){break;
}g=g.parentNode;
}}}}for(var a=0;
a<k.length;
a++){if(k[a]!=c){k[a].dragLeaveTarget(this);
}else{c.hitTest(this,f,true);
}}}return c;
},canDrop:function(){return(this.get_dockMode()&Telerik.Web.UI.DockMode.Floating)>0;
},drop:function(){var a=new Sys.CancelEventArgs();
this.raise_dockPositionChanging(a);
this.get_element().style.zIndex=this.originalZIndex;
if(a.get_cancel()){this._restorePosition();
}else{this.undock();
this.raise_dockPositionChanged(new Sys.EventArgs());
}},clone:function(b){if(!b){b="RadDockClone_"+(new Date()-100);
}var l=this.get_handle();
this._setHandle(null);
var e=this.get_commands();
for(var j in e){$clearHandlers(e[j].get_element());
}var d=this.get_element();
var c=d.cloneNode(true);
c.removeAttribute("control");
var g=$telerik.getElementByClassName(c,"rdTable","TABLE").rows;
var o=$telerik.getElementByClassName(g[0].cells[1],"rdTitleBar","DIV");
var p=$telerik.getElementByClassName(g[1].cells[1],"rdContent","DIV");
var f=c.getElementsByTagName("input")[0];
o.setAttribute("id",b+"_T");
p.setAttribute("id",b+"_C");
c.setAttribute("id",b);
f.setAttribute("id",b+"_ClientState");
f.setAttribute("name",b+"_ClientState");
d.parentNode.insertBefore(c,d.nextSibling);
var a=$telerik.cloneControl(this,Telerik.Web.UI.RadDock,c);
this._setHandle(l);
var q=a.get_commandsContainer().getElementsByTagName("a");
for(var n=0;
n<q.length;
n++){var d=q[n];
d.removeAttribute("control");
}a.set_commands(Array.clone(this._originalCommandsObject));
a._initializeCommands();
for(var h in e){var m=e[h];
var k=e[h].get_element();
$addHandlers(k,{click:m.onCommand,mousedown:m.onMouseDown},m);
}a.set_uniqueID(b);
if(a.get_dockZone()){a.get_dockZone()._resetDockIndices();
}return a;
},getCommand:function(a){return this._commands?this._commands[a]:null;
},get_handle:function(){return this._handle;
},set_handle:function(a){this._isCustomHandle=true;
this._setHandle(a);
},_setHandle:function(a){this._disposeDrag();
this._handle=a;
this._initializeDrag();
},_repaintHelper:function(){if(this.get_closed()){return;
}this._fixEmWidth();
this._setContentContainerHeight();
},getInvisibleParent:function(a){while(a!=document){if("none"==$telerik.getCurrentStyle(a,"display","")){return a;
}a=a.parentNode;
}return null;
},subtractPoints:function(b,a){return{x:b.x-a.x,y:b.y-a.y};
},addPoints:function(b,a){return{x:b.x+a.x,y:b.y+a.y};
},initialize:function(){Telerik.Web.UI.RadDock.callBaseMethod(this,"initialize");
if(this._isDockRightToLeft()){var d=this.get_element();
Sys.UI.DomElement.addCssClass(d,"rdRtl");
Sys.UI.DomElement.addCssClass(d,"RadDock_"+this._skin+"_rtl");
}this._initializeHtmlElementVariables();
this._initializeCommands();
this._updateToggleCommandsState();
this._setPinUnpinVisibility();
this._setHandle(this._titleBar||this._grip);
var c=this.get_element();
var a=c.parentNode;
var b=this.getInvisibleParent(this.get_element().parentNode);
isHidden=(b!=null);
if(isHidden){var e={position:c.style.position,top:c.style.top,left:c.style.left};
c.parentNode.removeChild(c);
c.style.position="absolute";
c.style.top="-5000px";
c.style.left="-5000px";
document.body.appendChild(c);
}else{this._fixEmWidth();
}if(this._height){this._setContentContainerHeight(this._height);
}this._middleMiddleCell.style.height="auto";
if(this._height!=null){this._setHeightHtmlEl(this._height);
}this._makeResizable();
if(isHidden){c.style.position=e.position;
c.style.top=e.top;
c.style.left=e.left;
c.parentNode.removeChild(c);
var f=this.get_dockZone();
if(f&&Telerik.Web.UI.RadDockZone.isInstanceOfType(f)){a.insertBefore(c,f._placeholder);
}else{a.appendChild(c);
}}this.updateClientState();
this.raise_initialize();
},undock:function(){var b=this.get_element();
if(b.parentNode!=this._form){this._form.appendChild(b);
}var a=this._getLocation(b);
this.set_left(a.x);
this.set_top(a.y);
var c=$find(this.get_dockZoneID());
if(c){this.set_dockZoneID("");
c._resetDockIndices();
this._unfitWidth();
}this._setPinUnpinVisibility();
this.updateClientState();
},_fitWidth:function(){this.get_element().style.width="100%";
this.get_contentContainer().style.width="100%";
this._fixEmWidth();
},_unfitWidth:function(){this.set_width(this.get_width());
this._fixEmWidth();
},_initializeHtmlElementVariables:function(){this._grip=$get(this.get_id()+"_G");
this._titleBar=$get(this.get_id()+"_T");
this.get_commandsContainer();
var b=this.get_element();
this._tableElement=b.getElementsByTagName("table")[0];
var c=this._tableElement.rows;
this._topBar=c[0];
this._topLeftBar=c[0].cells[0];
this._topRightBar=c[0].cells[2];
this._middleLeftBar=c[1].cells[0];
this._middleMiddleCell=c[1].cells[1];
this._middleRightBar=c[1].cells[2];
this._bottomBar=c[2];
this._bottomLeftBar=c[2].cells[0];
this._bottomMiddleBar=c[2].cells[1];
this._bottomRightBar=c[2].cells[2];
var a=this.get_element().parentNode;
while(a){if(a.tagName.toLowerCase()==="form"){this._form=a;
break;
}a=a.parentNode;
}},_initializeCommands:function(){if(!this._commandsContainer){return;
}var b=this._commandsContainer.getElementsByTagName("a");
var f=this._commands;
if(f){this._commands={};
for(var g=0;
g<f.length;
g++){var a=f[g];
var d=eval(a.clientTypeName);
if(d==Telerik.Web.UI.DockCommand||d.inheritsFrom(Telerik.Web.UI.DockCommand)){a.radDock=this;
var c=null;
if(a.command){c={command:eval(a.command)};
delete a.command;
}var e=$create(d,a,c,null,b[g]);
this._commands[e.get_name()]=e;
}else{throw Error.invalidOperation(a.clientTypeName+" does not inherit from Telerik.Web.UI.DockCommand.");
}}}},_updateToggleCommandsState:function(){var b=this.getCommand("ExpandCollapse");
if(b){b.set_state(this.get_collapsed()?2:1);
}var a=this.getCommand("PinUnpin");
if(a){a.set_state(this.get_pinned()?2:1);
}},_setPinUnpinVisibility:function(){var a=this.getCommand("PinUnpin");
if(a){a.get_element().style.display=this.get_dockZoneID()?"none":"";
}},_getBounds:function(a){if(!a){a=this.get_element();
}return $telerik.getBounds(a);
},_getMarginBox:function(a){if(!a){a=this.get_element();
}return $telerik.getMarginBox(a);
},_getBorderBox:function(a){if(!a){a=this.get_element();
}return $telerik.getBorderBox(a);
},_resetPosition:function(){var a=this.get_element();
a.style.top="";
a.style.left="";
a.style.position="";
if(typeof(this.originalZIndex)=="undefined"){this.originalZIndex="";
}a.style.zIndex=this.originalZIndex;
},_setContentContainerHeight:function(f){var d=this.get_contentContainer();
if(!d){return;
}if(this._height!=null||this._resizable){var b=this._getBounds();
var a=f!=null?parseInt(f):b.height;
var g=this._getBounds(this._topBar);
var e=this._getBounds(this._bottomBar);
var c=a-g.height-e.height;
d.style.height=(c<0?0:c)+"px";
}else{d.style.height="";
}},_restorePosition:function(){var a=$find(this.get_dockZoneID());
if(a){a.dock(this,this.get_index());
}else{this.undock();
}},_getLocation:function(a){if(!a){a=this.get_element();
}return $telerik.getLocation(a);
},_setLocation:function(a){$telerik.setLocation(this.get_element(),a);
},_setSize:function(a,c){var b=this._getBounds();
if(!a){a=b.width;
}this._setWidthHtmlEl(a);
this._setContentContainerHeight(c);
this._setHeightHtmlEl(c);
},get_contentContainer:function(){if(!this._contentContainer){this._contentContainer=$get(this.get_id()+"_C");
}return this._contentContainer;
},get_titleBar:function(){if(!this._titleBar){this._titleBar=$get(this.get_id()+"_T");
}return this._titleBar;
},get_commandsContainer:function(){if(!this._commandsContainer){var a=this.get_titleBar();
if(a){this._commandsContainer=$telerik.getElementByClassName(a,"rdCommands","UL");
}else{this._commandsContainer=null;
}}return this._commandsContainer;
},get_titleElement:function(){if(!this._titleElement){var a=this.get_titleBar();
this._titleElement=a?a.getElementsByTagName("em")[0]:null;
}return this._titleElement;
},get_innerDivElement:function(c){var b=this._tableElement;
if(b){if(b.rows.length>1){var a=b.rows[1].cells[1];
if(a){return a.getElementsByTagName("div")[c];
}}}return this.get_element().getElementsByTagName("div")[c];
},saveClientState:function(){var a={Top:this.get_top(),Left:this.get_left(),DockZoneID:this.get_dockZoneID(),Collapsed:this.get_collapsed(),Pinned:this.get_pinned(),Resizable:this.get_resizable(),Closed:this.get_closed(),Width:this.get_width(),Height:this.get_height(),ExpandedHeight:this._expandedHeight,Index:this.get_index()};
return Sys.Serialization.JavaScriptSerializer.serialize(a);
},conditionalPostback:function(a){if(this.get_autoPostBack()){this.doPostBack(a);
}},doPostBack:function(a){__doPostBack(this.get_uniqueID(),a);
},add_command:function(a){this.get_events().addHandler("command",a);
},remove_command:function(a){this.get_events().removeHandler("command",a);
},raise_command:function(a){this.raiseEvent("command",a);
},add_dragStart:function(a){this.get_events().addHandler("dragStart",a);
},remove_dragStart:function(a){this.get_events().removeHandler("dragStart",a);
},raise_dragStart:function(a){this.raiseEvent("dragStart",a);
},add_drag:function(a){this.get_events().addHandler("drag",a);
},remove_drag:function(a){this.get_events().removeHandler("drag",a);
},raise_drag:function(a){this.raiseEvent("drag",a);
},add_dragEnd:function(a){this.get_events().addHandler("dragEnd",a);
},remove_dragEnd:function(a){this.get_events().removeHandler("dragEnd",a);
},raise_dragEnd:function(a){this.raiseEvent("dragEnd",a);
},add_dockPositionChanged:function(a){this.get_events().addHandler("dockPositionChanged",a);
},remove_dockPositionChanged:function(a){this.get_events().removeHandler("dockPositionChanged",a);
},raise_dockPositionChanged:function(a){this.raiseEvent("dockPositionChanged",a);
this.conditionalPostback("dockPositionChanged");
},add_dockPositionChanging:function(a){this.get_events().addHandler("dockPositionChanging",a);
},remove_dockPositionChanging:function(a){this.get_events().removeHandler("dockPositionChanging",a);
},raise_dockPositionChanging:function(a){this.raiseEvent("dockPositionChanging",a);
},add_initialize:function(a){this.get_events().addHandler("initialize",a);
},remove_initialize:function(a){this.get_events().removeHandler("initialize",a);
},raise_initialize:function(a){this.raiseEvent("initialize",a);
},add_resizeStart:function(a){this.get_events().addHandler("resizeStart",a);
},remove_resizeStart:function(a){this.get_events().removeHandler("resizeStart",a);
},raise_resizeStart:function(a){this.raiseEvent("resizeStart",a);
},add_resizeEnd:function(a){this.get_events().addHandler("resizeEnd",a);
},remove_resizeEnd:function(a){this.get_events().removeHandler("resizeEnd",a);
},raise_resizeEnd:function(a){this.raiseEvent("resizeEnd",a);
},get_top:function(){return this._top;
},set_top:function(a){if(a!=""){a=parseInt(a);
if(this._initialized){this.get_element().style.top=a+"px";
}}this._top=a;
this.updateClientState();
},get_left:function(){return this._left;
},set_left:function(a){if(a!=""){a=parseInt(a);
if(this._initialized){this.get_element().style.left=a+"px";
}}this._left=a;
this.updateClientState();
},_onCloseAnimationEnd:function(){var d=this.get_element();
var b=this.get_contentContainer();
var c=this.getCommand("Close");
var a=this.get_titleElement();
if(a!=null){a.style.display="block";
}if(this._closed){d.style.display="none";
this.updateClientState();
if(c){Telerik.Web.UI.DockCloseCommand.callBaseMethod(c,"onCommand");
}}else{d.style.display="block";
this._repaintHelper();
if(!this._collapsed){this.set_height(this.get_height());
}$telerik.repaintChildren(this);
this.updateClientState();
if(c){Telerik.Web.UI.DockCloseCommand.callBaseMethod(c,"onCommand");
}}},get_closed:function(){return this._closed;
},set_closed:function(b,a){if(!this._initialized){return;
}this._closed=b;
a=a?a:false;
var e=this.get_enableAnimation()?this._animationDuration:0;
if(!a||e==0){this._onCloseAnimationEnd();
return;
}var f=this.get_element();
var c=Function.createDelegate(this,this._onCloseAnimationEnd);
var d=this.get_titleElement();
if(d!=null){d.style.display="none";
}if(b){$telerik.$(f).hide(e,c);
}else{$telerik.$(f).show(e,c);
}},get_collapsed:function(){return this._collapsed;
},set_collapsed:function(e,f){f=f?f:false;
var b=this._collapsed;
this._collapsed=e;
if(!this._initialized){return;
}var g=this;
var c=this.get_element();
var j=this._tableElement;
var d=this.get_contentContainer();
var h=this.get_enableAnimation()?this.get_animationDuration():0;
if(!f){h=0;
}var l={};
var m=this.getCommand("ExpandCollapse");
c.style.height="auto";
if(this._resizable){j.style.height="auto";
}if(this._collapsed){this._expandedHeight=this._height?parseInt(this._height):parseInt(g._getBounds().height);
l.height="0px";
$telerik.$(d).animate(l,h,function(){g._configureHandles(false);
g._setContentContainerHeight();
g.addCssClass("rdCollapsed");
if(m){m.set_state(2);
Telerik.Web.UI.DockExpandCollapseCommand.callBaseMethod(m,"onCommand");
}});
}else{if(b&&!this._collapsed&&!this._expandedHeight){if(this._height){this._expandedHeight=parseInt(this._height);
}else{d.style.height="auto";
g.removeCssClass("rdCollapsed");
this._expandedHeight=parseInt(g._getBounds().height);
g.addCssClass("rdCollapsed");
}}g.removeCssClass("rdCollapsed");
var a=this._getBounds(this._topBar).height;
var i=this._getBounds(this._bottomMiddleBar).height;
var k=parseInt(this._expandedHeight)-a-i;
l.height=k+"px";
d.style.height="0px";
$telerik.$(d).animate(l,h,function(){d.style.display="";
j.style.height="";
if(g.get_height()!=null){g._setHeightHtmlEl(g._expandedHeight);
}if(g._resizable){if(!g._dockZoneID){g._configureHandles(true);
}}if(g.get_height()==null){c.style.height="";
}g._setContentContainerHeight();
if(m){m.set_state(1);
}$telerik.repaintChildren(g);
if(g._resizable){g.set_height($telerik.getBounds(c).height+"px");
}g.updateClientState();
if(m){Telerik.Web.UI.DockExpandCollapseCommand.callBaseMethod(m,"onCommand");
}});
}},get_autoPostBack:function(){return this._autoPostBack;
},set_autoPostBack:function(a){this._autoPostBack=a;
},get_commands:function(){return this._commands;
},set_commands:function(a){this._commands=a;
this._originalCommandsObject=a;
},get_dockMode:function(){return this._dockMode;
},set_dockMode:function(a){this._dockMode=a;
},get_dockZoneID:function(){return this._dockZoneID;
},set_dockZoneID:function(a){if(a==""){if(!this._collapsed){this._configureHandles(true);
}}else{this._configureHandles(false);
}this._dockZoneID=a;
},get_forbiddenZones:function(){return this._forbiddenZones;
},set_forbiddenZones:function(a){this._forbiddenZones=a;
},get_height:function(){return this._height;
},set_height:function(a){this._height=a;
this.updateClientState();
if(this._initialized){this._setSize(null,a);
}},get_index:function(){return this._index;
},set_index:function(a){this._index=a;
},get_layoutID:function(){return this._layoutID;
},set_layoutID:function(a){this._layoutID=a;
},get_enableDrag:function(){return this._enableDrag;
},set_enableDrag:function(a){this._enableDrag=a;
this._initializeDrag();
},get_enableAnimation:function(){return this._enableAnimation;
},set_enableAnimation:function(a){this._enableAnimation=a;
},get_animationDuration:function(){return this._animationDuration;
},set_animationDuration:function(a){this._animationDuration=a;
},get_pinned:function(){return this._pinned;
},set_pinned:function(b){this._pinned=b;
if(!this._initialized){return;
}var a=this.getCommand("PinUnpin");
if(a){a.set_state(b?2:1);
}if($telerik.isIE6){if(b){this.set_enableDrag(false);
}else{this.set_enableDrag(true);
}return;
}var e=this.get_element();
e.style.position="absolute";
var c=$telerik.getScrollOffset(e,true);
var d=this._getLocation(e);
if(b){d=this.subtractPoints(d,c);
this._setLocation(d);
e.style.position="fixed";
this.set_enableDrag(false);
}else{d=this.addPoints(d,c);
this._setLocation(d);
this.set_enableDrag(true);
}},get_title:function(){return this._title;
},set_title:function(a){this._title=a;
var b=this.get_titleElement();
if(b){b.innerHTML=a;
}},get_uniqueID:function(){return this._uniqueID;
},set_uniqueID:function(a){this._uniqueID=a;
},get_uniqueName:function(){return this._uniqueName;
},set_uniqueName:function(a){this._uniqueName=a;
},set_visibleTitlebar:function(a){if(a==null){a=true;
}var b=this._topBar;
if(a){this.get_titleBar().style.display="";
Sys.UI.DomElement.removeCssClass(b,"rdNone");
}else{Sys.UI.DomElement.addCssClass(b,"rdNone");
this.get_titleBar().style.display="none";
}},get_width:function(){return this._width;
},set_width:function(a){this._width=a;
this.updateClientState();
if(this._initialized){this._setSize(a,null);
}},get_skin:function(){return this._skin;
},set_skin:function(a){if(a&&this._skin!=a){this._skin=a;
}},get_resizable:function(){return this._resizable;
},set_resizable:function(a){this._resizable=a;
this._makeResizable();
},get_dockZone:function(){return this._dockZone;
},set_dockZone:function(a){this._dockZone=a;
}};
Telerik.Web.UI.RadDock.registerClass("Telerik.Web.UI.RadDock",Telerik.Web.UI.RadWebControl);
Telerik.Web.UI.RadDock.prototype.repaint=function(){this._repaintHelper();
};
Telerik.Web.UI.DockCommand=function(a){Telerik.Web.UI.DockCommand.initializeBase(this,[a]);
this._clientTypeName=null;
this._cssClass="rdCustom";
this._radDock=null;
this._name="Custom";
this._text="Custom";
this._autoPostBack=false;
};
Telerik.Web.UI.DockCommand.prototype={add_command:function(a){this.get_events().addHandler("command",a);
},remove_command:function(a){this.get_events().removeHandler("command",a);
},raise_command:function(b){var a=this.get_events().getHandler("command");
if(a){a(this.get_radDock(),b);
}},get_clientTypeName:function(){return this._clientTypeName;
},set_clientTypeName:function(a){this._clientTypeName=a;
},get_cssClass:function(){return this._cssClass;
},set_cssClass:function(a){this._cssClass=a;
},get_name:function(){return this._name;
},set_name:function(a){this._name=a;
},get_text:function(){return this._text;
},set_text:function(a){this._text=a;
},get_autoPostBack:function(){return this._autoPostBack;
},set_autoPostBack:function(a){this._autoPostBack=a;
},get_radDock:function(){return this._radDock;
},set_radDock:function(a){this._radDock=a;
},onCommand:function(b){var a=new Sys.CancelEventArgs();
a.command=this;
a.event=b;
a.Command=this;
this.raise_command(a);
if(a.get_cancel()){return;
}this.get_radDock().raise_command(a);
if(a.get_cancel()){return;
}this.get_radDock().updateClientState();
this.conditionalPostback();
},onMouseDown:function(a){$telerik.cancelRawEvent(a);
},conditionalPostback:function(){if(this.get_autoPostBack()){this.get_radDock().doPostBack(this.get_name());
}},initialize:function(){Telerik.Web.UI.DockCommand.callBaseMethod(this,"initialize");
$addHandlers(this.get_element(),{click:this.onCommand,mousedown:this.onMouseDown},this);
},dispose:function(){$clearHandlers(this.get_element());
Telerik.Web.UI.DockCommand.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.DockCommand.registerClass("Telerik.Web.UI.DockCommand",Sys.UI.Control);
Telerik.Web.UI.DockToggleCommand=function(a){Telerik.Web.UI.DockToggleCommand.initializeBase(this,[a]);
this._state=1;
this._alternateCssClass="rdCustom";
this._alternateText="Custom";
this._initialSetState=false;
};
Telerik.Web.UI.DockToggleCommand.prototype={updateState:function(){var b=this.get_element();
var a=b.getElementsByTagName("span")[0];
if(this.get_state()==1){b.title=this.get_text();
Sys.UI.DomElement.addCssClass(a,this.get_cssClass());
Sys.UI.DomElement.removeCssClass(a,this.get_alternateCssClass());
}else{b.title=this.get_alternateText();
Sys.UI.DomElement.addCssClass(a,this.get_alternateCssClass());
Sys.UI.DomElement.removeCssClass(a,this.get_cssClass());
}},get_state:function(){return this._state;
},set_state:function(a){this._state=a;
if(this._initialSetState){this.updateState();
}},get_alternateCssClass:function(){return this._alternateCssClass;
},set_alternateCssClass:function(a){this._alternateCssClass=a;
},get_alternateText:function(){return this._alternateText;
},set_alternateText:function(a){this._alternateText=a;
},initialize:function(){Telerik.Web.UI.DockToggleCommand.callBaseMethod(this,"initialize");
this._initialSetState=true;
this.updateState();
},dispose:function(){Telerik.Web.UI.DockToggleCommand.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.DockToggleCommand.registerClass("Telerik.Web.UI.DockToggleCommand",Telerik.Web.UI.DockCommand);
Telerik.Web.UI.DockCloseCommand=function(a){Telerik.Web.UI.DockCloseCommand.initializeBase(this,[a]);
this._cssClass="rdClose";
this._name="Close";
this._text="Close";
};
Telerik.Web.UI.DockCloseCommand.prototype={onCommand:function(a){this.get_radDock().set_closed(true,true);
}};
Telerik.Web.UI.DockCloseCommand.registerClass("Telerik.Web.UI.DockCloseCommand",Telerik.Web.UI.DockCommand);
Telerik.Web.UI.DockExpandCollapseCommand=function(a){Telerik.Web.UI.DockExpandCollapseCommand.initializeBase(this,[a]);
this._cssClass="rdCollapse";
this._alternateCssClass="rdExpand";
this._name="ExpandCollapse";
this._text="Collapse";
this._alternateText="Expand";
};
Telerik.Web.UI.DockExpandCollapseCommand.prototype={onCommand:function(a){this.get_radDock().set_collapsed(!this.get_radDock().get_collapsed(),true);
}};
Telerik.Web.UI.DockExpandCollapseCommand.registerClass("Telerik.Web.UI.DockExpandCollapseCommand",Telerik.Web.UI.DockToggleCommand);
Telerik.Web.UI.DockPinUnpinCommand=function(a){Telerik.Web.UI.DockPinUnpinCommand.initializeBase(this,[a]);
this._cssClass="rdUnpin";
this._alternateCssClass="rdPin";
this._name="PinUnpin";
this._text="Pin";
this._alternateText="Unpin";
};
Telerik.Web.UI.DockPinUnpinCommand.prototype={onCommand:function(a){this.get_radDock().set_pinned(!this.get_radDock().get_pinned());
Telerik.Web.UI.DockPinUnpinCommand.callBaseMethod(this,"onCommand");
}};
Telerik.Web.UI.DockPinUnpinCommand.registerClass("Telerik.Web.UI.DockPinUnpinCommand",Telerik.Web.UI.DockToggleCommand);
